﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace QRCodePass.Core.Models
{
    /// <summary>
    /// 系部
    /// </summary>
    public class Department
    {
        [Key]
        public int Id { get; set; }
        [Display(Name = "院系名称")]
        [StringLength(50, MinimumLength = 3)]
        public string Name { get; set; }

        // 预算
        //[DataType(DataType.Currency)]
        //[Column(TypeName = "money")]
        //[Display(Name = "预算")]
        //public decimal Budget { get; set; }

        public virtual ICollection<DepartProc> DepartProcs { get; set; }
    }
}